# Maintainer: Antonio Rojas <arojas@archlinux.org>

_dbname=conway_polynomials
pkgname=sage-data-$_dbname
pkgver=0.5
pkgrel=5
pkgdesc='A small database of Conway polynomials'
arch=(any)
url='https://www.sagemath.org'
license=(GPL)
depends=()
makedepends=(python)
source=(https://mirrors.mit.edu/sage/spkg/upstream/conway_polynomials/$_dbname-$pkgver.tar.bz2
        spkg-install)
sha256sums=('d8f2788a85b1c2482cc4abe1a35d3da777445e21ec49b031d36b899e3c0deb17'
            'd1dd7f996b6552edaf692296a8bc170572a95c8201634d45adddddb7092ab636')

package() {
  export SAGE_SHARE="$pkgdir"/usr/share
  export PYTHONPATH=$PWD
  ln -s conway_polynomials-$pkgver src
  python spkg-install
}
